<?php

namespace App\Http\Controllers;

use App\Helpers\ApiResponse;
use App\Helpers\ConfigTrait;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Support\Facades\Artisan;

class Controller extends BaseController
{
    use AuthorizesRequests, DispatchesJobs, ValidatesRequests, ApiResponse, ConfigTrait;

    public function welcome()
    {
        echo 'welcome '.config('app.url');
    }

    public function artisan()
    {
        Artisan::call('auto:receipt');
    }
}
